import request from '../utils/request'

/*登录*/
export const login = (user) => {
  return request({
    url: '/login',
    method: 'post',
    data: {
      password: user.password,
      username: user.username,
      validateCode: user.validateCode,
      token: user.token
    }
  });
}
export const queryAllUserByUserName = (current,size,departmentId,username) => {
  return request({
    url: '/user/queryAllUserByUserName',
    method: 'get',
    params: {
      current,
      size,
      departmentId,
      username
    }
  });
}
export const updateUserById = (status,id) => {
  return request({
    url: '/user/updateUserById2',
    method: 'get',
    params: {
      status,
      id
    }
  });
}

export const deleteUserById = (id) => {
  return request({
    url: '/user/deleteUserById',
    method: 'get',
    params: {
      id
    }
  });
}
